package com.cmc.cloud.cmclink.doc.vo.specialcargomaximumvo;

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 单船特种货最大装载量限制维护 Base VO，提供给添加、修改、详细的子 VO 使用 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SpecialCargoMaximumBaseVO {

    @Schema(description = "航线代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{specialcargomaximum.lanecode.notnull}")
    @Length(max = 50, message = "{specialcargomaximum.lanecode.max.length}")
    private String laneCode;

    @Schema(description = "船舶代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{specialcargomaximum.vesselcode.notnull}")
    @Length(max = 50, message = "{specialcargomaximum.vesselcode.max.length}")
    private String vesselCode;

    @Schema(description = "超限货物teu")
    private Integer oogTeu;

    @Schema(description = "液袋货teu")
    private Integer flexiTeu;

    @Schema(description = "危险品teu")
    private Integer dgTeu;

    @Schema(description = "半开门teu")
    private Integer odoTeu;

}
